// 股票分组

package models

// 字段定义的文档
// https://gorm.io/zh_CN/docs/models.html

// STK_GROUP 自选股的分组
type STK_GROUP struct {
	GRP_ID    int64   `gorm:"primaryKey;autoIncrement;not null"`
	GRP_NAME  string  `gorm:"type:varchar(50);not null;"`
	ORDER_NUM float64 `gorm:"not null"`
	USER_ID   int64   `gorm:"not null"`
	BaseModel
}

func (STK_GROUP) TableName() string {
	return "stk_group"
}

type STK_GROUP_MEMBER struct {
	GRP_MEMID    int64   `gorm:"primaryKey;autoIncrement;not null"`
	GRP_ID       int64   `gorm:"not null"`
	USER_ID      int64   `gorm:"not null"`
	COMPANY_CODE string  `gorm:"type:varchar(50);not null;"`
	ORDER_NUM    float64 `gorm:"not null"`
	BaseModel
}

func (STK_GROUP_MEMBER) TableName() string {
	return "stk_group_member"
}
